﻿<%@ Control Language="C#" Inherits="CVCommunity.Admin.Bulletins" %>
<script language='javascript'>
function htmlDecode(str)
{
	var s = str.replace(/&lt;/gi, '<');
	s = s.replace(/&gt;/gi, '>');
	s = s.replace(/&amp;/gi, '&');
	s = s.replace(/\r/gi, '');
	s = s.replace(/\n+/gi, '&nbsp;');
	return s;
}
function doPreview()
{
	var win = window.open();
	win.document.write(htmlDecode(document.getElementById('bulletinText').innerHTML));
	 
}
</script>

<form runat="server">
<div class="grid">
<table cellspacing="0" class="inner">
<tr class="forumno category">
<td>公告管理</td>
</tr>
<tr class="forumtd">
<td>输入&nbsp;/&nbsp;修改公告内容&nbsp;&nbsp;&nbsp;<span class="t1">( 支持 HTML  )</span></td>
</tr>
<tr class="forumtd">
<td>
<textarea name="bulletinText" id="bulletinText" class="input2" onBlur="this.className='input2'" onFocus="this.className='input1'" style="width:98%; font-family:宋体; font-size:14px; height:180px; line-height:160%;" rows="21"><%=BulletinText%></textarea></td>
</tr>
<tr class="forumtd" align="center">
<td><asp:Button Text="  修 改  " OnClick="Save" CssClass="button" runat="server"></asp:Button>
<input name="button" type="button" class="button" onclick="javascript:doPreview()" value="  预 览  " /></td>
</tr>
</table>
</div>
</form>